package com.free.ip;

import org.junit.Assert;
import org.junit.Test;

import com.free.ip.util.IPSeeker;
import com.free.ip.vo.IPLocation;
import com.free.utl.Util;

public class IPSeekerTestCase {

    @Test
    public void test() {
        IPSeeker ipSeeker = IPSeeker.getInstance("/Users/andrew/Dropbox/Work/lib/qqwry.dat");
        Assert.assertNotNull(ipSeeker);
        IPLocation ip = ipSeeker.getIPLocation("111.90.178.66");
        Assert.assertNotNull(ip);
        Util.consoleLog(ip);
    }

}
